import { OrgServiceApi } from "./_org";
import { AxiosResponse } from "axios";
import { objectToUrlParams } from "/@/utils/common";
import service from "/@/utils/request";

class AuditLogServiceApi extends OrgServiceApi {
  pageQueryAuditLogList(bean: any, params?: any): Promise<AxiosResponse<any>> {
    let url = this.baseUrl + "/pageQueryAuditLogList";
    url += objectToUrlParams(params, true);
    return service.get(url, { params: { ...bean } });
  }
  exportQueryAuditLogList(bean: any, params?: any): Promise<AxiosResponse<any>> {
    let url = this.baseUrl + "/exportQueryAuditLogList";
    url += objectToUrlParams(params, true);
    return service.post(url, bean);
  }
}

export const ExportAuditLogServiceApi = new AuditLogServiceApi(
  "/AuditLogService"
);
class OrgAppServiceApi extends OrgServiceApi { }

export const ExportOrgAppServiceApi = new OrgAppServiceApi(
  "/OrgAppService"
);
